<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>商品销售统计查看页- ${web.name}${web.additionalTitle!}</title>
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${sysResRoot}/front.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/common/css/jquery.ui.css" rel="stylesheet" type="text/css"/>
<script src="${base}/res/common/js/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/fckeditor/fckeditor.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
function g(o){
	return document.getElementById(o);
}
</script>
<style>
.dcinput{cursor:pointer; text-align:left; background:url(${root}/u/img/member/menu_ok4.gif); width:89px; height:22px; color:#fff;}
</style>
</head>
<body>
[#include "../include/店铺页头顶栏.html"/]
<div class="w1168">
	[#include "店铺中心_导航.html"/]
	<div class="user_right">
		<div class="user_title2">
        	商品销售统计详情页
			<a href="list.jspx?pageNo=${pageNo!}" class="fr" style="margin-right:5px;">返回列表</a>
        </div>
        <div class="clear10"></div>    
      <form id="jvForm" action="view.jspx">
        <input type="hidden" name="id" value="${bean.id}"/>
        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="90" height="40" align="right">订单编号：</td>
            <td><input id="code" type="text" maxlength="30" value="${code!}" name="code" size="50" class="address_input" style="width:200px;"/></td>
            <td width="90" align="right">下单时间：</td>
            <td>
            <input type="text" name="startTime" value="${startTime!}" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  style="height:22px; width:100px;"/>到
        <input type="text" name="endTime"  value="${endTime!}" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  style="height:22px; width:100px;"/>
            </td>
            <td width="90">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td height="40" align="right">支付方式：</td>
            <td>
            <select id="paymentId" name="paymentId" class="dzinput">
        <option value="">--支付方式--</option>
        [#list paymentList as payment]
        <option value="${payment.id}"[#if paymentId??] [#if paymentId==payment.id]selected="selected"[/#if][/#if]>${payment.name!}</option>
        [/#list]
        </select>
            </td>
            <td align="right">订单状态：</td>
            <td>
            <select id="status" name="status" class="dzinput">
            <option value="">--请选择订单状态--</option>
            <option value="10" [#if status??&&status==10]selected="selected"[/#if]>待付款</option>
            <option value="11" [#if status??&&status==11]selected="selected"[/#if]>付款失败</option>
            <option value="12" [#if status??&&status==12]selected="selected"[/#if]>待收货</option>
            <option value="13" [#if status??&&status==13]selected="selected"[/#if]>卖家已发货</option>
            <option value="14" [#if status??&&status==14]selected="selected"[/#if]>确认收货</option>
            <option value="15" [#if status??&&status==15]selected="selected"[/#if]>申请退货/退款</option>
            <option value="16" [#if status??&&status==16]selected="selected"[/#if]>卖家同意退货/退款</option>
            <option value="17" [#if status??&&status==17]selected="selected"[/#if]>买家寄出退货</option>
            <option value="18" [#if status??&&status==18]selected="selected"[/#if]>卖家已收退货</option>
            <option value="19" [#if status??&&status==19]selected="selected"[/#if]>退款</option>
            <option value="20" [#if status??&&status==20]selected="selected"[/#if]>完成的订单</option>
            </select>
            </td>
            <td align="right">配送方式：</td>
            <td>
            <select id="shippingId" name="shippingId" class="dzinput">
            <option value="">--配送方式--</option>
            [#list shippingList as shipping]
            <option value="${shipping.id}"[#if shippingId??] [#if shippingId==shipping.id]selected="selected"[/#if][/#if]>${shipping.name!}</option>
            [/#list]
            </select>
            </td>
          </tr>
          <tr>
            <td height="40" align="right">&nbsp;</td>
            <td colspan="5"><input type="submit" value="" class="menu_ok3" onclick="this.form.action='view.jspx';"/></td>
          </tr>
        </table>
        <div class="clear10"></div>
        [@order_item_page productId=bean.id code=code paymentId=paymentId shippingId=shippingId storeId=storeId status=status  startTime=startTime  endTime=endTime count='20']
        <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#cccccc" style=" margin:10px auto auto auto;">
        <tr>	
        <td height="30" align="center" bgcolor="#FFFFFF" colspan="7">${bean.name!}1
        <input type="submit" value="导出到Excel" class="dcinput" onclick="this.form.action='v_excel.jspx';"/>
        <span style="float:right; margin-right:5px;">金额总计：${total!0} /销售数量：${totalCount!0}</span></td>
        </tr>
        <tr>	
        <td width="120" height="30" align="center" bgcolor="#f0f0f0">订单编号</td>
        <td align="center" bgcolor="#f0f0f0">商品金额</td>
        <td width="80" align="center" bgcolor="#f0f0f0">购买数量</td>
        <td width="140" align="center" bgcolor="#f0f0f0">购买时间</td>
        <td width="130" align="center" bgcolor="#f0f0f0">支付方式</td>
        <td width="120" align="center" bgcolor="#f0f0f0">配送方式</td>
        <td align="center" bgcolor="#f0f0f0">状态</td>
        </tr>
        [#if tag_list?size gt 0]
        [#list tag_list as item]
        <tr>	
        <td height="50" align="center" bgcolor="#FFFFFF">${item.itemOrder.code!}</td>
        <td align="center" bgcolor="#FFFFFF">${item.salePrice!0}</td>
        <td align="center" bgcolor="#FFFFFF">${item.count!0}</td>
        <td align="center" bgcolor="#FFFFFF">${item.itemOrder.createTime!}</td>
        <td align="center" bgcolor="#FFFFFF">${item.itemOrder.payment.name!}</td>
        <td align="center" bgcolor="#FFFFFF">${item.itemOrder.shipping.name!}</td>
        <td align="center" bgcolor="#FFFFFF">
        [#if item.itemOrder.status??]
        [#if item.itemOrder.status==10]待付款[#elseif item.itemOrder.status==11]付款失败
        [#elseif item.itemOrder.status==12]待收货[#elseif item.itemOrder.status==13]卖家已发货
        [#elseif item.itemOrder.status==14]确认收货[#elseif item.itemOrder.status==15]申请退货/退款
        [#elseif item.itemOrder.status==16]卖家同意退货/退款[#elseif item.itemOrder.status==17]买家寄出退货
        [#elseif item.itemOrder.status==18]卖家已收退货[#elseif item.itemOrder.status==19]退款成功
        [#elseif item.itemOrder.status==20]完成的订单 [#elseif item.itemOrder.status==21] 已取消的订单
        [#elseif item.itemOrder.status==22]已收退款[/#if]
        [/#if]
        </td>
        </tr>
        [/#list]
        [/#if]
        <tr>	
        <td height="30" align="center" bgcolor="#FFFFFF" colspan="7">
        <div align="center">[@pagination_style sysPage='3'/]</div>
        </td>
        </tr>
        </table>
        [/@order_item_page]
        </form>
	</div>
    <div class="clear20"></div>
</div>
[#include "../include/页脚信息栏.html"/]
</body>
</html>